package org.microframework.cloud.auth.config;

import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration;
import org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * 负载均衡器后处理器配置
 * 
 * 此配置类用于优化LoadBalancer的BeanPostProcessor初始化顺序，
 * 解决启动时的Bean初始化警告问题。
 */
@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)
@AutoConfigureBefore({
    LoadBalancerAutoConfiguration.class,
    LoadBalancerBeanPostProcessorAutoConfiguration.class
})
public class LoadBalancerPostProcessorConfig {
    // 仅作为标记类，优化配置顺序，无需实际内容
} 